package chapter1104;

public class SalesEmployee extends Employee {
    private int saleRate;
    private double royaltyRate;

    public SalesEmployee(String name, int birthdayMonth, int saleRate, double royaltyRate) {
        super(name, birthdayMonth);
        this.saleRate = saleRate;
        this.royaltyRate = royaltyRate;
    }

    @Override
    public double getSalary(int month) {
        return super.getSalary(month) + saleRate*royaltyRate;
    }

}
